<template>
  <!-- <life-cycle title="Vue2生命周期的全过程演示"></life-cycle>  -->
    <!-- <fruit></fruit> -->
   <div>
     <MyTime v-if="show"></MyTime>
     <button @click="show=!show">switch</button>
   </div>
</template>

<script>
// import Fruit from '@/components/Fruit'
// import LifeCycle from './components/LifeCycle.vue'
import MyTime from '@/components/MyTime.vue'
export default {
    data(){
        return{
            show:true
        }
    },
    components:{
        // LifeCycle,
        // Fruit
        MyTime
    }
}
</script>

<style>

</style>